home *** CD-ROM | disk | FTP | other *** search
- What is RTTI ?
- --------------
-
- The C++ language does not currently provide a mechanism for an object to
- determine its type at run-time. Some applications need run-time information
- such as class names and class inheritance structure. In order to meet this
- need, the ANSI C++ committee has approved a proposal for a language extension
- to support Run Time Type Information (RTTI). This proposal is described in
- "Standards: New Language Extensions" in the July-August issue of the C++
- Report.
-
- The proposed RTTI support in C++ consists of three components:
- 1. The "dynamic_cast" operator which will allow automatic run-time checks
- for type conversions.
- 2. The "typeid" operator which will return the type of an object at
- run-time.
- 3. The option for user-defined libraries to extend the built-in RTTI
- facilities.
-
- The software contained in this package provides library support for all three
- of these features. This is a stop-gap implementation, designed to be used
- until commercial compilers support the RTTI extensions. It will allow users
- to experiment with RTTI. When commercial compiler support for RTTI becomes
- available, this software will still have value through its support for
- user-defined extensions.
-